package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;

import model.Review;
import model.User;

/**
 * @author Sarah George
 *
 */
public class AssignSPCListener implements ActionListener {
	
	private User my_spc;
	
	public AssignSPCListener() {
		super();
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		JComboBox<User> cb = (JComboBox<User>)e.getSource();
        User chosen_spc = (User)cb.getSelectedItem();
		my_spc = chosen_spc;
	}
	
	public User getSPC() {
		return my_spc;
	}

}
